<template>
  <div class="app-container ver-layout-center">
    <h1>昊源天然气</h1>
    <div class="hor-layout-around model-layout">
      <div class="model-item hor-layout-center-all" @click="toPage(print)">
        <iconfont size="30"></iconfont>
        <div class="model-name">发票打印</div>
      </div>
      <div class="model-item hor-layout-center-all" @click="toPage(database)">
        <iconfont name="icon-invoiceshujuchuli" size="30"></iconfont>
        <div class="model-name">数据管理</div>
      </div>
    </div>
  </div>
</template>

<script>
import iconfont from "@/components/iconfont";

export default {
  name: "home",
  components: {
    iconfont
  },
  data() {
    return {
      database: '/database',
      print: '/print'
    }
  },
  methods: {
    toPage(path) {
      this.$router.push({path})
    }
  }
}
</script>

<style scoped>
.app-container {
  padding: 1.2rem;
}

.model-layout {
  width: 100%;
  height: 9rem;
  margin-top: 20px;
}

.model-item {
  width: 35%;
  border-radius: 1rem;
  background: #ffcd4f;
}

.model-item:hover {
  background: #DAA520FF;
}

.model-name {
  margin-left: 2rem;
  font-size: 2rem;
  color: #555555;
}

</style>
